package blackhouse_server;

import blackhouse_entity.pageBase;

public class pageServer
{
	public pageBase intial(Object list, int[] countSize, int pageSize)
	{
		pageBase bd = new pageBase();
		bd.setList(list);
		int num = countSize[0] / pageSize;
		if (countSize[0] % pageSize != 0)
			num++;
		bd.setPageSize(num);
		bd.setCount(countSize[0]);
		return bd;
	}
}
